$OpenBSD: patch-lib_ipmi_ime_c,v 1.2 2016/05/07 14:18:12 sthen Exp $
--- lib/ipmi_ime.c.orig	Fri May  6 15:48:54 2016
+++ lib/ipmi_ime.c	Sat May  7 14:34:58 2016
@@ -433,7 +433,7 @@ static int ImeUpgrade(struct ipmi_intf *intf, char* im
             shownPercent = currentPercent;
             printf("Percent: %02i,  ", shownPercent);
             time(&current);
-            printf("Elapsed time %02ld:%02ld\r",((current-start)/60), ((current-start)%60));
+            printf("Elapsed time %02lld:%02lld\r",(long long)((current-start)/60), (long long)((current-start)%60));
             fflush(stdout);
 
          }
@@ -482,13 +482,13 @@ static int ImeUpgrade(struct ipmi_intf *intf, char* im
      )
    {
       time(&end);
-      printf("Update Completed in %02ld:%02ld\n",(end-start)/60, (end-start)%60);
+      printf("Update Completed in %02lld:%02lld\n",(long long)(end-start)/60, (long long)(end-start)%60);
    }
    else
    {
       time(&end);
       printf("Update Error\n");
-      printf("\nTime Taken %02ld:%02ld\n",(end-start)/60, (end-start)%60);
+      printf("\nTime Taken %02lld:%02lld\n",(long long)(end-start)/60, (long long)(end-start)%60);
    }
 
    return rc;
